package com.example.library.mapper;

import com.example.library.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Swtao
 * @since 2024-09-19
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {
    @Select("select * from user where user_name=#{username}")
    User findByUserName(String username);  // 这里改为 findByUserName
}

